<?php
/* @var $this UserController */
/* @var $model User */
/* @var $form CActiveForm */

$this->menu=array(
	array('label'=>Yii::t('BackEnd','Profile'), 'url'=>array('profile')),
    array('label'=>Yii::t('BackEnd','Change Password'), 'url'=>array('changepassword')),
);
?>
<?= $this->renderPartial('//layouts/sidebar'); ?>

<section>
    <div class="heading_section">
        <span><?= Yii::t('BackEnd','Change Password'); ?></span>
    </div>
    
    <div class="content">
        <div class="form">
        <?php $form=$this->beginWidget('CActiveForm', array(
        	'id'=>'user-changepassword-form',
        	'enableAjaxValidation'=>true,
            'enableClientValidation'=>true,
            'clientOptions'=>array(
                'validateOnSubmit'=>true,
                'validateOnChange'=>true,
                'validateOnType'=>false,
            ),
        )); ?>
        <div class="table">
       	<div class="tr">
    		<div class="td"><?= $form->labelEx($model,'oldpassword'); ?></div>
    		<div class="td2"><?= $form->passwordField($model,'oldpassword',array('class'=>'input','maxlength'=>32)); ?></div>
    		<div class="td3"><?= $form->error($model,'oldpassword'); ?></div>
    	</div>
    
    	<div class="tr">
    		<div class="td"><?= $form->labelEx($model,'password'); ?></div>
    		<div class="td2"><?= $form->passwordField($model,'password',array('class'=>'input','maxlength'=>32)); ?></div>
    		<div class="td3"><?= $form->error($model,'password'); ?></div>
    	</div>
    
    	<div class="tr">
    		<div class="td"><?= $form->labelEx($model,'repassword'); ?></div>
    		<div class="td2"><?= $form->passwordField($model,'repassword',array('class'=>'input','maxlength'=>32)); ?></div>
    		<div class="td3"><?= $form->error($model,'repassword'); ?></div>
    	</div>
        
        <div class="tr">
            <div class="td"></div>
    		<div class="td2">
                <?= CHtml::submitButton(Yii::t('BackEnd','Update'), array('class'=>'button')); ?>
                <?= CHtml::resetButton(Yii::t('BackEnd','Reset'), array('class'=>'button')); ?>
            </div>
            <div class="td3"></div>
    	</div>
        </div>
        <?php $this->endWidget(); ?>
        
        </div><!-- form -->
    </div>
</section>